Add a regression test for host allocators that return null - #162
Add a regression test for host allocators that return null#162kadircanyildirm-crypto wants to merge 1 commit into
Conversation
ac9edc5 to
0da4074
Compare
|
Rebased onto #163 added Re-verified on |
CoreMark Benchmark ResultsCurrent Score: 245.539 |
Code Coverage ReportCurrent Coverage: 95.30% |
0da4074 to
d7e2f48
Compare
|
Rebased onto AI use per |
Rebased onto
main. #189 landed the null check this PR proposed, inRustSystemAllocator(crates/spacewasm_util/src/lib.rs:15-20) and in the fuzzingSystemAllocator, so the fix itself is gone from the diff. What is left:crates/spacewasm_util/tests/page_null.rs: aPageAllocatoroverRustSystemAllocatormust report an unsatisfiable page asErr, not serve a page at address zero. Passes onmain; with thelib.rscheck reverted it fails.tests/util/spectest.rs: the same check inSpecTestAllocator, the one allocator of that shape Clean up code-base from external review #189 did not touch.Verified on 2eceda3: fmt, clippy (
--workspace --all-targets --all-features -D warnings),page_nullon x86-64 and i686, also withstrict-assertions, andregression_integration. Happy to close instead if you would rather not carry the test.AI use per
AI_POLICY.md: Claude Code assisted with the rebase, the verification runs and this description; scope iscrates/spacewasm_util/tests/andtests/util/, nosrc/change.